package com.smh.a04ZhengZedemo4;

public class Test1 {
    public static void main(String[] args) {


        String regex = "\\w{4,16}";

        String regexId = "[1-9]\\d{16}(\\d|X|x)";
        String regexId1 = "[1-9]\\d{16}(\\d|(?i)x)";
        //"a((?i)b)c";//忽略大小写
        String regexIdYan = "[1-9]\\d{5}(18|19|20)\\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\\d|3[0-1])\\d{3}[\\dXx]";
        System.out.println("130433200410261313".matches(regexIdYan));

    }
}
